angular.module('Controller')
.directive('nrJob',[()->
            return {
            restrict:'E'
            scope : {
                items : '=items'
            }
            replace:true
            templateUrl:'templates/nr-job/nr-job.html'
            controller:'NrJobCtrl'
            }
        ])

.controller 'NrJobCtrl',($scope,$localStorage)->
    console.log "NrJobCtrl"
    _.extend $scope,
        checkJob:(item)->
            item.active = !item.active

